package com.qiniu.githubdata.entity.neo;

import lombok.Data;
import org.springframework.data.neo4j.core.schema.Id;
import org.springframework.data.neo4j.core.schema.Node;
import org.springframework.data.neo4j.core.schema.Relationship;

import java.util.HashSet;
import java.util.Set;

@Node("Repository")
@Data
public class RepositoryNode {
    @Id
    private Long id;
    private String name;
    private Double importance;
    
    @Relationship(type = "CONTRIBUTED_BY", direction = Relationship.Direction.INCOMING)
    private Set<ContributionRelation> contributors = new HashSet<>();
}